import datetime
from multiprocessing import Lock
from multiprocessing import Queue


class CONFIG:
    WXID_LIST = ["filehelper"]  # 发送的微信id
    CONVBOND_BACKENDCIRCLE = 2
    LOCAL_HOST = "http://localhost"
    PORT = "8000"
    LOCAL_URL = LOCAL_HOST + ":" + PORT
    # 程序运行时间在上午9:30 到 11:30  下午13:00 到 下午3:00
    LAST_N_DAY_MEAN = -10  # 前十天平均
    AM_START = datetime.time(9, 28)
    AM_END = datetime.time(11, 00)
    PM_START = datetime.time(12, 58)  # 预留两分钟加载
    PM_END = datetime.time(15, 00)


class G:
    """
    全局变量

    """
    MESSAGE_QUEUE = Queue(10)
    MESSAGE_QUEUE_LOCK = Lock()
